package com.duowei.diandan.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;

import com.duowei.diandan.db.entry.Auth;

import java.util.List;

@Dao
public interface AuthDao {
    @Query("SELECT * FROM Auth LIMIT 1")
    Auth findOne();

    @Insert
    void insert(List<Auth>list);

    @Query("DELETE FROM Auth")
    void deleteAll();
}
